﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MVC4WPF.Automation.Wizards
{
    /// <summary>
    /// Wraps the windows handle provided by the dialog and makes it avaliable for consumption by the system.
    /// </summary>
    public class WindowHandleWrapper:IWin32Window
    {
        #region IWin32Window Members

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="hwnd"></param>
        public WindowHandleWrapper(Int32 hwnd)
        {
            _handle = (IntPtr)hwnd;
        }

        IntPtr _handle;
        public IntPtr Handle
        {
            get { return _handle; }
        }

        #endregion
    }
}
